Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(progressbar): bs4 progressbar wip #2037

Merged
merged 3 commits into from
Jul 18, 2017
Merged

Conversation

valorkin
Copy link
Member

@valorkin valorkin commented Jun 6, 2017

No description provided.

@codecov
Copy link

codecov bot commented Jun 6, 2017

Codecov Report

Merging #2037 into development will increase coverage by 0.66%.
The diff coverage is 92.85%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #2037      +/-   ##
===============================================
+ Coverage        87.16%   87.83%   +0.66%     
===============================================
  Files               85       85              
  Lines             2259     2375     +116     
  Branches           292      320      +28     
===============================================
+ Hits              1969     2086     +117     
- Misses             187      190       +3     
+ Partials           103       99       -4
Impacted Files Coverage Δ
src/progressbar/progressbar.component.ts 100% <100%> (ø) ⬆️
src/progressbar/bar.component.ts 90.32% <85.71%> (-1.68%) ⬇️
src/accordion/accordion-group.component.ts 94.59% <0%> (-1.56%) ⬇️
src/popover/popover.directive.ts 96.61% <0%> (-1.01%) ⬇️
src/buttons/button-radio.directive.ts 96.87% <0%> (-0.27%) ⬇️
src/accordion/accordion.component.ts 96.77% <0%> (+1.77%) ⬆️
src/tabs/tabset.component.ts 90.47% <0%> (+6.34%) ⬆️
src/positioning/ng-positioning.ts 78.22% <0%> (+10.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c172423...a016519. Read the comment docs.

@YevheniiaMazur
Copy link

Tested, looks good


<small><em>No animation</em></small>
<progress class="progress progress-success" [value]="dynamic" [max]="100"><b>{{dynamic}}%</b></progress>
<progressbar class="progress progress-success" [value]="dynamic" [max]="100" [type]="'success'"><b>{{dynamic}}%</b></progressbar>

This comment was marked as off-topic.

@@ -69,8 +69,8 @@ export class ModalDirective implements AfterViewInit, OnDestroy {
protected originalBodyPadding: number = 0;
protected scrollbarWidth: number = 0;

protected timerHideModal: number = 0;
protected timerRmBackDrop: number = 0;
protected timerHideModal: any = 0;

This comment was marked as off-topic.

@@ -28,6 +29,10 @@ export class BarComponent implements OnInit, OnDestroy {
public get value():number {
return this._value;
}
@HostBinding('style.width.%') get setBarWidth(){
this.recalculatePercentage();
return this.isBs3 ? 'auto' : this.percent;

This comment was marked as off-topic.

@Input() public value:number;
/** current value of progress bar. Could be a number or array of objects like {"value":15,"type":"info","label":"15 %"} */
@Input() public set value(value: number | any[]) {
this.stacked = Array.isArray(value);

This comment was marked as off-topic.

@valorkin valorkin merged commit 2bf9ad8 into development Jul 18, 2017
@valorkin valorkin deleted the fix-bs4-progressbar branch July 18, 2017 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants